/*
Copyright 2022 The Numaproj Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Code generated by Openapi Generator. DO NOT EDIT.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetVertexPodSpecReq {
    #[serde(rename = "DefaultResources")]
    pub default_resources: k8s_openapi::api::core::v1::ResourceRequirements,
    #[serde(rename = "Env")]
    pub env: Vec<k8s_openapi::api::core::v1::EnvVar>,
    #[serde(rename = "ISBSvcType")]
    pub isb_svc_type: String,
    #[serde(rename = "Image")]
    pub image: String,
    #[serde(rename = "PipelineSpec")]
    pub pipeline_spec: Box<crate::models::PipelineSpec>,
    #[serde(rename = "PullPolicy")]
    pub pull_policy: String,
    #[serde(rename = "ServingSourceStreamName")]
    pub serving_source_stream_name: String,
    #[serde(rename = "SideInputsStoreName")]
    pub side_inputs_store_name: String,
}

impl GetVertexPodSpecReq {
    pub fn new(
        default_resources: k8s_openapi::api::core::v1::ResourceRequirements,
        env: Vec<k8s_openapi::api::core::v1::EnvVar>,
        isb_svc_type: String,
        image: String,
        pipeline_spec: crate::models::PipelineSpec,
        pull_policy: String,
        serving_source_stream_name: String,
        side_inputs_store_name: String,
    ) -> GetVertexPodSpecReq {
        GetVertexPodSpecReq {
            default_resources,
            env,
            isb_svc_type,
            image,
            pipeline_spec: Box::new(pipeline_spec),
            pull_policy,
            serving_source_stream_name,
            side_inputs_store_name,
        }
    }
}
